package com.ryan;

import java.lang.reflect.Field;

public class TestApp {
	
	public static void main(String[] args) throws ClassNotFoundException {
		Bean bean = new Bean();
		bean.setType(11);
		Class<?> cls = Class.forName(bean.getClass().getName());
		for(Field f: bean.getClass().getFields()){
			System.out.println(f.getName());
		}
	}
}
